import { defineStore } from 'pinia'

export const useItemStore = defineStore('items', {
  state: () => ({
    items: []
  }),
  actions: {
    addItem(newItem) {
      this.items.unshift(newItem)
    }
  }
})